<template>
    <Table :columns="columns11" :data="data10" border></Table>
</template>

<script>
export default {
  name: 'tableOne',
  data () {
    return {
      columns11: [
        {
          title: '名称',
          align: 'center',
          minWidth: 200,
          key: 'name'
        },
        {
          title: '时间',
          align: 'center',
          width: 100,
          key: 'date'
        },
        {
          title: '风险因素',
          align: 'center',
          children: [
            {
              title: '因素',
              key: 'fyinsu',
              align: 'center',
              width: 80
            }, {
              title: '权重',
              key: 'fquanzhong',
              align: 'center',
              width: 80
            }, {
              title: '等级',
              key: 'fdengji',
              align: 'center',
              width: 100
            }
          ]
        },
        {
          title: '隐患因素',
          align: 'center',
          children: [
            {
              title: '因素',
              key: 'yyinsu',
              align: 'center',
              width: 80
            }, {
              title: '权重',
              key: 'yquanzhong',
              align: 'center',
              width: 80
            }, {
              title: '等级',
              key: 'ydengji',
              align: 'center',
              width: 100
            }
          ]
        },
        {
          title: '事故率',
          align: 'center',
          width: 200,
          key: 'shigulv'
        },
        {
          title: '折扣比率',
          align: 'center',
          width: 200,
          key: 'zhekoubilv'
        }
      ],
      data10: []
    }
  },
  mounted () {
    const data = []
    for (let i = 0; i < 3; i++) {
      data.push({
        key: i,
        date: '2018-09-22',
        name: '营口科达运输有限公司',
        fyinsu: '因素一',
        yyinsu: '因素一',
        fquanzhong: '0.0265',
        yquanzhong: '0.0265',
        fdengji: '较小0.031',
        ydengji: '较小0.031',
        shigugailv: '',
        zhekoubilv: ''
      })
    }
    this.data10 = data
  }
}
</script>

<style scoped>

</style>
